SUBDIRS = modules

bin_PROGRAMS = trayinfo
trayinfo_SOURCES = \
	sendq.c \
	trayinfo.c \
	utils.c

noinst_HEADERS = \
	sendq.h \
	trayinfo.h \
	utils.h

trayinfo_CFLAGS = -pedantic -Wall
#trayinfo_CFLAGS += -DSYSCONFDIR=\"$(sysconfdir)\"
trayinfo_CFLAGS += -DLIBDIR=\"$(libdir)\"
trayinfo_LDFLAGS = -export-dynamic
trayinfo_LDADD = $(LIBLTDL) $(LIBSSL)
trayinfo_DEPENDENCIES = $(LIBLTDL)

SPARSE = sparse
sparse:
	for i in $(trayinfo_SOURCES); do \
		$(SPARSE) -D__i386__ $(trayinfo_CFLAGS) $$i || exit; \
	done
